<?php
namespace Index\Controller;
use Think\Controller;
class CategoryController extends CommonController {
    public function indexAction(){
    	$cid = I('get.cid',0);
   		$sql = "select count(id) count from category_question where cid ='{$cid}'";

   		$count = current(M()->query($sql))['count'];

        $obj = new IndexController();
        $obj->indexAction("LEFT JOIN category_question t3 on t1.id=t3.qid where t3.cid='{$cid}'",$count);
    }
} 